//男100米赛事成绩计算器
const m100ManScore = {
    "11.3": 25.0,
    "11.32": 24.9,
    "11.34": 24.8,
    "11.36": 24.7,
    "11.38": 24.6,
    "11.4": 24.5,
    "11.42": 24.4,
    "11.44": 24.3,
    "11.46": 24.2,
    "11.48": 24.1,
    "11.5": 24.0,
    "11.52": 23.9,
    "11.54": 23.8,
    "11.56": 23.7,
    "11.58": 23.6,
    "11.6": 23.5,
    "11.62": 23.4,
    "11.64": 23.3,
    "11.66": 23.2,
    "11.68": 23.1,
    "11.7": 23.0,
    "11.72": 22.9,
    "11.74": 22.8,
    "11.76": 22.7,
    "11.78": 22.6,
    "11.8": 22.5,
    "11.82": 22.4,
    "11.84": 22.3,
    "11.86": 22.2,
    "11.88": 22.1,
    "11.9": 22.0,
    "11.92": 21.9,
    "11.94": 21.8,
    "11.96": 21.7,
    "11.98": 21.6,
    "12.0": 21.5,
    "12.02": 21.4,
    "12.04": 21.3,
    "12.06": 21.2,
    "12.08": 21.1,
    "12.1": 21.0,
    "12.12": 20.9,
    "12.14": 20.8,
    "12.16": 20.7,
    "12.18": 20.6,
    "12.2": 20.5,
    "12.22": 20.4,
    "12.24": 20.3,
    "12.26": 20.2,
    "12.28": 20.1,
    "12.29": 20.0,
    "12.3": 19.9,
    "12.31": 19.8,
    "12.32": 19.7,
    "12.33": 19.6,
    "12.34": 19.5,
    "12.35": 19.4,
    "12.36": 19.3,
    "12.37": 19.2,
    "12.38": 19.1,
    "12.39": 19.0,
    "12.4": 18.9,
    "12.41": 18.8,
    "12.42": 18.7,
    "12.43": 18.6,
    "12.44": 18.5,
    "12.45": 18.4,
    "12.46": 18.3,
    "12.47": 18.2,
    "12.48": 18.1,
    "12.49": 18.0,
    "12.5": 17.9,
    "12.51": 17.8,
    "12.52": 17.7,
    "12.53": 17.6,
    "12.54": 17.5,
    "12.55": 17.4,
    "12.56": 17.3,
    "12.57": 17.2,
    "12.58": 17.1,
    "12.59": 17.0,
    "12.6": 16.9,
    "12.61": 16.8,
    "12.62": 16.7,
    "12.63": 16.6,
    "12.64": 16.5,
    "12.67": 16.4,
    "12.7": 16.3,
    "12.73": 16.2,
    "12.76": 16.1,
    "12.79": 16.0,
    "12.82": 15.9,
    "12.85": 15.8,
    "12.88": 15.7,
    "12.91": 15.6,
    "12.94": 15.5,
    "12.97": 15.4,
    "13.0": 15.3,
    "13.04": 15.2,
    "13.08": 15.1,
    "13.12": 15.0,
    "13.16": 14.9,
    "13.2": 14.8,
    "13.24": 14.7,
    "13.28": 14.6,
    "13.32": 14.5,
    "13.36": 14.4,
    "13.4": 14.3,
    "13.44": 14.2,
    "13.48": 14.1,
    "13.5": 14.0,
    "13.52": 13.9,
    "13.54": 13.8,
    "13.56": 13.7,
    "13.58": 13.6,
    "13.6": 13.5,
    "13.62": 13.4,
    "13.64": 13.3,
    "13.66": 13.2,
    "13.68": 13.1,
    "13.7": 13.0,
    "13.72": 12.9,
    "13.74": 12.8,
    "13.76": 12.7,
    "13.78": 12.6,
    "13.8": 12.5,
    "13.82": 12.4,
    "13.84": 12.3,
    "13.86": 12.2,
    "13.88": 12.1,
    "13.9": 12.0,
    "13.92": 11.9,
    "13.94": 11.8,
    "13.96": 11.7,
    "13.98": 11.6,
    "14.0": 11.5,
    "14.02": 11.4,
    "14.04": 11.3,
    "14.06": 11.2,
    "14.08": 11.1,
    "14.1": 11.0,
    "14.12": 10.9,
    "14.14": 10.8,
    "14.16": 10.7,
    "14.18": 10.6,
    "14.2": 10.5,
    "14.22": 10.4,
    "14.24": 10.3,
    "14.26": 10.2,
    "14.28": 10.1,
    "14.3": 10.0,
    "14.32": 9.9,
    "14.34": 9.8,
    "14.36": 9.7,
    "14.38": 9.6,
    "14.4": 9.5,
    "14.42": 9.4,
    "14.44": 9.3,
    "14.46": 9.2,
    "14.48": 9.1,
    "14.5": 9.0,
    "14.52": 8.9,
    "14.54": 8.8,
    "14.56": 8.7,
    "14.58": 8.6,
    "14.6": 8.5,
    "14.62": 8.4,
    "14.64": 8.3,
    "14.66": 8.2,
    "14.68": 8.1,
    "14.7": 8.0,
    "14.72": 7.9,
    "14.74": 7.8,
    "14.76": 7.7,
    "14.78": 7.6,
    "14.8": 7.5,
    "14.82": 7.4,
    "14.84": 7.3,
    "14.86": 7.2,
    "14.88": 7.1,
    "14.9": 7.0,
    "14.92": 6.9,
    "14.94": 6.8,
    "14.96": 6.7,
    "14.98": 6.6,
    "15.0": 6.5,
    "15.02": 6.4,
    "15.04": 6.3,
    "15.06": 6.2,
    "15.08": 6.1,
    "15.1": 6.0,
    "15.12": 5.9,
    "15.14": 5.8,
    "15.16": 5.7,
    "15.18": 5.6,
    "15.2": 5.5,
    "15.22": 5.4,
    "15.24": 5.3,
    "15.26": 5.2,
    "15.28": 5.1,
    "15.3": 5.0,
    "15.32": 4.9,
    "15.34": 4.8,
    "15.36": 4.7,
    "15.38": 4.6,
    "15.4": 4.5,
    "15.42": 4.4,
    "15.44": 4.3,
    "15.46": 4.2,
    "15.48": 4.1,
    "15.5": 4.0,
    "15.52": 3.9,
    "15.54": 3.8,
    "15.56": 3.7,
    "15.58": 3.6,
    "15.6": 3.5,
    "15.62": 3.4,
    "15.64": 3.3,
    "15.66": 3.2,
    "15.68": 3.1,
    "15.7": 3.0,
    "15.72": 2.9,
    "15.74": 2.8,
    "15.76": 2.7,
    "15.78": 2.6,
    "15.8": 2.5,
    "15.82": 2.4,
    "15.84": 2.3,
    "15.86": 2.2,
    "15.88": 2.1,
    "15.9": 2.0,
    "15.92": 1.9,
    "15.94": 1.8,
    "15.96": 1.7,
    "15.98": 1.6,
    "16.0": 1.5,
    "16.02": 1.4,
    "16.04": 1.3,
    "16.06": 1.2,
    "16.08": 1.1,
    "16.1": 1.0,
    "16.12": 0.9,
    "16.14": 0.8,
    "16.16": 0.7,
    "16.18": 0.6,
    "16.2": 0.5,
    "16.22": 0.4,
    "16.24": 0.3,
    "16.26": 0.2,
    "16.28": 0.1,
    "16.3": 0.0
};
// 定义时间和分数的对应关系
const keys = Object.keys(m100ManScore).map(k => ({
    original: k,
    numeric: parseFloat(k)
})).sort((a, b) => a.numeric - b.numeric);

function getMan100mScore(inputTime) {
    const target = parseFloat(inputTime);
    // 寻找第一个大于等于目标数值的键
    for (const key of keys) {
        if (key.numeric >= target) {
            return m100ManScore[key.original];
        }
    }
    // 如果所有键都小于目标值，则返回最后一个键的值
    return m100ManScore[keys[keys.length - 1].original];
}